package org.csu.jpetstore.domain;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Log {
    private static Date data = null;
    private static StringBuilder stringbuilder = new StringBuilder();
    private static String marsk = " [ERROE] ";
    public Log() {}
    public static synchronized String log(Object... s) {
        stringbuilder.delete(0, stringbuilder.length());
        stringbuilder.append(time());
        stringbuilder.append(marsk);
        stringbuilder.append("  ");
        Object[] var1 = s;
        int var2 = s.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            Object str = var1[var3];
            stringbuilder.append(str);
            stringbuilder.append(" ");
        }

        return stringbuilder.toString();
    }
    public static String logInfomation(Object... s) {
        marsk = " ";
        return log(s);
    }
    private static String time() {
        data = new Date();
        return (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")).format(data);
    }
}
